<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
   <%@ include file="/common/CimsCommon.jsp" %>
   <title>新增保证金</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <script type="text/javascript" src="${basePath}/js/cims/creditManage/queryTCMmBailBond.js"></script>
  
</head>
  
<body style="background-color:#FFFFFF">
<div id="formPageSwap">
  <br/>
<form id="addNewsFormData" name="addNewsFormData" isCheck="true" action="com.jy.modules.cims.common.controller.TCMmBailBondController">
	<div class="expandSwap">
		<div class="ui-widget-header ui-corner-all">
			<span class="text">合约信息</span><span class="expandBtn"></span>
		</div>
		<div class="expandContent">
			 <input type="button" id="importContract" value="导入合约" style="margin-bottom:10px;" onclick="toAddContract()"/>
			 <table id="addNewsTableId" class="formTableSwap" border="0" align="center" cellpadding="0" cellspacing="1" >
				<tr>
				  <th> 担保机构名称 ：</th>
				  <td  colspan="5"> 
					  <input type="text" class="text" id="dtocooperorgCode" name="organizationCode" notNull="false" value="" readonly/>
				  </td>
				  
				  
				</tr>
				<tr>
				  <th> 合作机构 ：</th>
				  <td > 
					  <input type="text" disabled="disabled" class="text" id="dtoorganizationCode" name="cooperorgName"  value="${dto.cooperorgDTO.cooperorgName}" readonly/>
				      <input type="hidden" class="text" id="dtocooperorgCode" name="cooperorgCode" notNull="false" value="${dto.cooperorgDTO.cooperorgCode}" readonly/>
				  </td>
				  <th> 协议名称：</th>
				  <td >
				     <input type="text" disabled="disabled" class="text" id="dtoagreementName" name="agreementName"  value="${dto.agreementDTO.agreementName}" />
				      <input type="hidden" class="text" id="dtoagreementCode" name="agreementCode" notNull="false" value="${dto.agreementDTO.agreementCode}" />
				  </td>
				  <th> 合约名称：</th>
				  <td > 
				     <input type="text"  disabled="disabled" class="text" id="dtocontractName" name="contractName"  value="${dto.cdto.contractName}" />
				     <input type="hidden" class="text" id="dtocontractCode" name=contractCode notNull="false" value="${dto.cdto.contractCode}" />
				  </td>
				  
				</tr>
				
				<tr>
				  <th> 发起方 ：</th>
				  <td > 
				  <input  type="text" disabled="disabled" class="text" id="dtoinitiator" name="initiator"   value="${dto.cdto.initiator}" />
				  </td>
				  <th> 接收方：</th>
				  <td colspan="3"> 
				  <input type="text" disabled="disabled" class="text" id="dtoreceiver" name="receiver"  value="${dto.cdto.receiver}" />
				  </td>
				</tr>
				<tr>
				  <th> 付款方 ：</th>
				  <td > 
				  <input type="text"  disabled="disabled" class="text" id="dtopayer" name="payer"  value="${dto.cdto.payer}" />
				  </td>
				  <th> 收款方 ：</th>
				  <td colspan="3"> 
				  <input  type="text"  disabled="disabled" class="text" id="dtogathering" name="gathering"  value="${dto.cdto.gathering}" />
				  </td>
				</tr>
				
				<tr>
				</tr>
				<tr align="left">
				  <th align="left">担保标的 ：</th>
				  <td > 
					  <input type="text" class="text" id="prenum" name="prenum"  maxLength="16" value="" />
				  </td>
				   <th align="left">收取比例 ：</th>
				  <td colspan="3" > 
					  <input type="text" class="text" id="pre" name="pre"  maxLength="16" value="" />
				  </td>
				
				</tr>
         </table>
		</div>
		<div class="ui-widget-header ui-corner-all">
			<span class="text">债权交易信息</span><span class="expandBtn"></span>
		</div>
		<div class="expandContent">
	        <div id="jytableToolbar" class="tableToolbar" >
	            <a href="javascript:void(0)" onclick="initFnCooperOrgDealView();" index="0">查询债权交易</a>
			    <a href="javascript:void(0)" onclick="toAddData()" index="1">试算</a>
			  	<a href="javascript:void(0)" onclick="toUpdateData()" index="2">导出</a>
	        </div>
	        
			 <div id="creditDetailTable">
		      <%@include file="../creditManage/viewCooperOrgDeal.jsp" %>
	         </div>
		</div>
		
		
		<div class="ui-widget-header ui-corner-all">
			<span class="text">结算信息</span><span class="expandBtn"></span>
		</div>
		<div class="expandContent">
			 <table id="addNewsTableId" class="formTableSwap" border="0" align="center" cellpadding="0" cellspacing="1" >
				<tr>
				  <th> 上次担保金额 ：</th>
				  <td > 
					  <input type="text" class="text" id="ex_bailBond" name="ex_bailBond" notNull="false" value="" />
				  </td>
				  <th> 当前担保金额：</th>
				  <td>
				  	<input type="text" class="text" id="now_bailBond" name="now_bailBond" notNull="false" value="" />
				  </td>
				    <th> 实际担保金额：</th>
				  <td>
                    <input type="text" class="text" id="dtobailBond" name="bailBondSum" notNull="false" value="" />
				  </td>
				  
				</tr>
				
         </table>
		</div>
		<div class="expandToolbar">
			<span class="submitBtn" onclick="doAddFrom();">提交</span>
			<span class="submitBtn" onclick="parent.tabs.close();">关闭</span>
		</div>
	</div>
<!-- 保存 关闭 按钮 在 查询页面进行控制 -->  
</form>

</div>

</body>

<script type="text/javascript">

   $(document).ready(function(){
   
   //initCombo();
   	checkedInit();
   	Cmm.util.dateInputInit("addNewsFormData");
    initFnCooperOrgDealView();
 
   	
	});
	
</script>
  
</html>
